package com.hhh.bigevent.anno;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = StateValidation.class)
public @interface State {
    String message() default "文章状态: 只能是[已发布] 或者 [草稿]";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}